$custom-color: var(--custom-color, #4746a3);

::v-deep .v-list-item__title {
  font-size: 14px;
}

::v-deep .v-list-item--link {
  min-height: 42px;
}

.chat-frame-container {
  width: 100%;
  height: 100%;
  padding: 0 0 30px 30px;
  display: flex;
  flex-direction: column;

  .chat-info-area {
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    //border-bottom: 2px solid #f6f6f6;

    .user-info {
      width: fit-content;
      height: 100%;
      display: flex;
      flex-direction: row;
      align-items: center;

      .name-and-status {
        width: 100%;
        height: 100%;
        margin: 0 0 0 20px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        justify-content: center;

        .username {
          width: 100%;
          height: fit-content;
          font-size: 18px;
          font-weight: bold;
          color: #333;
        }

        .status {
          width: 100%;
          height: fit-content;
          font-size: 12px;
          color: #aaa;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          transform: translateX(-3px);
        }
      }
    }

    .btn-group {
      width: fit-content;
      height: 100%;
      display: flex;
      flex-direction: row;
      align-items: center;
      margin-left: auto;

      ::v-deep .v-btn {
        margin: 0 2px;
      }
    }
  }

  .message-area {
    width: 100%;
    height: 100%;
    padding-right: 20px;
    overflow-y: scroll;
    overflow:-moz-scrollbars-none;

    .message-container {
      width: 100%;
      height: fit-content;
      margin-bottom: 20px;

      .datetime-container {
        width: 100%;
        margin: 30px 0 15px;
        font-size: 12px;
        text-align: center;
        color: #888;
      }

      .datetime-container:nth-child(1) {
        margin-top: 0;
      }

      .avatar-container {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;

        image {
          width: 100%;
        }
      }

      .message-content {
        width: fit-content;
        max-width: calc(100% - 140px);
        height: fit-content;
        min-height: 30px;
        padding: 10px;
        font-size: 15px;
        word-break: break-all;

        view {
          pointer-events: none;
        }

        image {
          max-width: 35vw;
        }
      }

      .avatar-container-left {
        float: left;
        margin-left: 20px;
      }

      .message-content-left {
        margin-left: 70px;
        border-radius: 0 10px 10px 20px;
        background-color: #f1f1f1;
      }

      .avatar-container-right {
        float: right;
        margin-right: 0;
      }

      .message-content-right {
        margin-left: auto;
        margin-right: 50px;
        border-radius: 10px 0 20px 10px;
        background-color: $custom-color;
        color: #fff;
      }
    }
  }

  .edit-message-area {
    width: 100%;
    height: fit-content;
    min-height: 70px;
    flex-shrink: 0;
    padding: 10px 0 0 0;
    display: flex;
    flex-direction: row;
    border-top: 1px solid #f1f1f1;

    ::v-deep .btn-area {
      width: fit-content;
      height: 100%;
      flex-shrink: 0;
      display: flex;
      flex-direction: row;

      .v-input--hide-details {
        padding-top: 0;

        .v-input__prepend-outer {
          margin-right: 0;
          margin-top: 2px;

          .v-icon {
            font-size: 18px;
            color: #999;
          }
        }
      }

      .v-btn {
        margin-top: 4px;
      }
    }

    .input-area {
      width: 100%;
      height: 100%;

      ::v-deep .v-text-field__slot {
        margin: 0 5px;

        textarea {
          margin-top: 4px !important;
        }

        .v-label {
          top: 9px !important;
        }
      }
    }

    .send-btn-area {
      width: 50px;
      height: 100%;
      flex-shrink: 0;
      margin-left: auto;
    }
  }
}